-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a VM DRS Override module #2229
base: main
Are you sure you want to change the base?
Conversation
@mariolenz I left a few comments. Perhaps you will find some other recommendations for the author. |
Build failed. ❌ ansible-tox-linters NODE_FAILURE Node request 200-0007647616 failed in 0s |
Build succeeded. ✔️ ansible-tox-linters SUCCESS in 4m 29s |
Build failed. ❌ ansible-tox-linters FAILURE in 4m 12s |
Build failed. ✔️ ansible-tox-linters SUCCESS in 4m 45s |
Build succeeded. ✔️ ansible-tox-linters SUCCESS in 4m 06s |
@ihumster , please take a look. |
Hi, As you're already using get_vm can you add folder and datacenter parameters to allow for precise search of vm? Thanks! |
@svg1007 LGFM, let's wait @mariolenz. |
SUMMARY
This PR contains a new Ansible module,
vmware_drs_override
, to thecommunity.vmware
collection. The module allows users to configure Distributed Resource Scheduler (DRS) behavior overrides for individual VMs within a VMware vSphere cluster. This provides users with enhanced control over VM placement, resource allocation, and automation behavior by enabling DRS settings specific to each VM rather than relying solely on cluster-wide configurations.Key design decisions include:
community.vmware
modules in terms of structure, error handling, and documentation.This PR does not fix a pre-existing issue but adds new functionality to enhance VMware DRS management in the
community.vmware
collection.ISSUE TYPE
COMPONENT NAME
vmware_drs_override
ADDITIONAL INFORMATION
The
vmware_drs_override
module provides the following parameters:hostname
,username
,password
, andport
for vCenter server access.validate_certs
to handle SSL verification.vm_name
anddrs_behavior
to specify the VM and desired DRS configuration (options includemanual
,partiallyAutomated
, andfullyAutomated
).This module was tested using a local vCenter environment to verify correct DRS behavior application and task handling. Example playbook and command output are provided below to demonstrate module functionality.